Skip to content

Override scalajs-library versionCheck #552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ashawley
Copy link
Member

Yet another temporary setting to fix #551.

@ashawley
Copy link
Member Author

ashawley commented Aug 28, 2021

Partially worked, but not for Scala.js with Scala 3.0.1

[error] Incompatibilities with dependencies of scala-xml:2.0.1
[error]   org.scala-js:scalajs-library_2.13: incompatible version change from 1.6.0 to 1.7.0 (compatibility: strict semantic versioning)

@dubinsky
Copy link
Contributor

#549 with this change incorporated still fails: https://app.travis-ci.com/github/scala/scala-xml/jobs/534375251

@SethTisue SethTisue requested a review from julienrf August 29, 2021 05:37
@@ -4,7 +4,7 @@ ThisBuild / startYear := Some(2002)
ThisBuild / licenses += (("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))

// because it doesn't declare it itself
ThisBuild / libraryDependencySchemes += "org.scala-js" %% "scalajs-library" % "semver-spec"
ThisBuild / libraryDependencySchemes += "org.scala-js" %% "scalajs-library" % "always"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the recommended way of fixing the issue.

We should remove this line now that Scala.js does declare its versioning scheme.

And we should relax the compatibility intention to Compatibility.BinaryCompatible.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, good to know. I didn't realize we could change that policy, and also that it would fix the dependency issue.

@ashawley
Copy link
Member Author

Closing since Julien suggests this isn't the recommended solution.

@ashawley ashawley closed this Aug 30, 2021
@ashawley ashawley deleted the drop-version-policy-scalajs-version-override branch August 31, 2021 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

versionPolicyCheck fails for scalajs-library
3 participants